import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/theme-chalk/index.css'
import ElementPlus from 'element-plus'
import "@element-plus/icons-vue"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "@/assets/icons/iconfont.css"
import "@/assets/css/global.css"
// 使用时加class= animate__animated animate__bounce 官网: https://animate.style/
import 'animate.css';

import { createPinia} from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist' //

// pinia
const store = createPinia()
// 解决刷新
store.use(piniaPluginPersist)


import UndrawUi from 'undraw-ui'
import 'undraw-ui/dist/style.css'


const app=createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(store).use(UndrawUi).use(router).use(ElementPlus).use(store).mount('#app')